<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <title>订单宝</title>
    <link rel="stylesheet" href="css/ydui.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="iconfont/iconfont.css">
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/ydui.flexible.js"></script>
    <script src="js/vue.js"></script>
    <script src="js/ydui.js"></script>
    <script src="js/nuoxia.js"></script>
</head>

<body>
    <div class="g-view vipPage">
        <div class="userinfo" id="setupPage">
            <div class="userinfo-l">
                <img :src="user_obj.avatar" alt="">
                <div class="userinfo-n-m">
                    <p class="userinfo-n">{{user_obj.nickname}}</p>
                    <p class="userinfo-m">账户余额：{{user_obj.score}}</p>
                </div>
            </div>
            <div class="userinfo-r" @click="gocode">
                <img src="icon/ercode.png" alt="">
            </div>
        </div>
        <div class="member">
            <a href="html/topups.html" class="member-list">
                <i class="icon iconfont">&#xe60a;</i>
                <p>我要充值</p>
            </a>
            <a href="html/noticesetup.html" class="member-list">
                <i class="icon iconfont">&#xe727;</i>
                <p>通知设置</p>
            </a>
        </div>
        <div class="m-cell bornone">
            <a class="cell-item" href="html/iwant.html">
                <div class="cell-left">
                    <i class="cell-icon icon iconfont">&#xe689;</i>我要认证</div>
                <div class="cell-right cell-arrow"></div>
            </a>
        </div>
        <div class="m-cell">
            <a class="cell-item" href="setup.html">
                <div class="cell-left">
                    <i class="cell-icon icon iconfont">&#xe616;</i>商机设置</div>
                <div class="cell-right cell-arrow"></div>
            </a>
            <a class="cell-item" href="html/mybusiness.html">
                <div class="cell-left">
                    <i class="cell-icon  icon iconfont">&#xe616;</i>我的商机</div>
                <div class="cell-right cell-arrow"></div>
            </a>
            <a class="cell-item" href="release.html">
                <div class="cell-left">
                    <i class="cell-icon  icon iconfont">&#xe616;</i>发布商机</div>
                <div class="cell-right cell-arrow"></div>
            </a>
            <a class="cell-item" href="html/accountinfo.html">
                <div class="cell-left">
                    <i class="cell-icon  icon iconfont">&#xe754;</i>账户明细</div>
                <div class="cell-right cell-arrow"></div>
            </a>
        </div>
        <div class="m-cell">
                <a class="cell-item" href="tel:18688888888">
                    <div class="cell-left">
                        <i class="cell-icon icon iconfont">&#xe7bb;</i>联系客服</div>
                    <div class="cell-right cell-arrow"></div>
                </a>
                <a class="cell-item" href="html/buyknow.html">
                    <div class="cell-left">
                        <i class="cell-icon icon iconfont">&#xe73b;</i>购买须知</div>
                    <div class="cell-right cell-arrow"></div>
                </a>
                <a class="cell-item" href="html/about.html">
                    <div class="cell-left">
                        <i class="cell-icon icon iconfont">&#xe65c;</i>关于我们</div>
                    <div class="cell-right cell-arrow"></div>
                </a>
            </div>
    </div>
    <footer class="m-tabbar tabbar-fixed">
        <a href="index.html" class="tabbar-item">
            <span class="tabbar-icon">
                <i style="font-size:25px" class="icon iconfont">&#xe617;</i>
            </span>
            <span class="tabbar-txt">询盘商机</span>
        </a>
        <a href="setup.html" class="tabbar-item">
            <span class="tabbar-icon">
                <i style="font-size:20px" class="icon iconfont">&#xe698;</i>
            </span>
            <span class="tabbar-txt">设置商机</span>
        </a>
        <a href="release.html" class="tabbar-item">
            <span class="tabbar-icon">
                <i style="font-size:22px" class="icon iconfont">&#xe662;</i>
            </span>
            <span class="tabbar-txt">发布商机</span>
        </a>
        <a href="vip.html" class="tabbar-item tabbar-active">
            <span class="tabbar-icon">
                <i style="font-size:25px" class="icon iconfont">&#xe67e;</i>
            </span>
            <span class="tabbar-txt">会员中心</span>
        </a>
    </footer>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/vue.js"></script>
    <script src="js/ydui.js"></script>
    <script src="js/nuoxia.js"></script>
    <script>
        window.onload = function () {
            var token = window.localStorage.getItem("token")
            var setupPage = new Vue({
                el: "#setupPage",
                data: {
                    user_obj: {}
                },
                filters: {

                },
                mounted: function () {
                    this.setupType();
                },
                methods: {
                    setupType: function () {
                        var _this = this;
                        $.ajax({
                            type: "get",
                            url: paraurl + "api/user/userindex?tm=" + tm,
                            data: {
                                token: token
                            },
                            success: function (data) {
                                if (data.code == 1) {
                                    _this.user_obj=data.data;
                                }
                            }
                        })
                    },
                    gocode:function(){
                        window.location.href="html/ercode.html"
                    }
                }
            })
        }
    </script>
</body>

</html>